﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE_DLL.Product.DAO;
using ERP_RORZE_DLL.Product.database;

namespace ERP_RORZE_PRODUCT.Product.Deadline
{
    public partial class ctrlDeadlineCaculation : DevExpress.XtraEditors.XtraUserControl
    {
        ClsDeadlineDAO clsDeadlineDAO = new ClsDeadlineDAO();
        DataTable dt;
        clsDeadlineCheckTable b = new clsDeadlineCheckTable();

        public ctrlDeadlineCaculation()
        {
            InitializeComponent();
        }

        void Reload(object sender, EventArgs e)
        {
            dt = clsDeadlineDAO.GetAllDeadLineCaculation();
            gridControl1.DataSource = dt;
            gridView1.BestFitColumns();
        }
        private void gridControl1_Load(object sender, EventArgs e)
        {
            Reload(sender,e);
        }

        private void btnReload_Click(object sender, EventArgs e)
        {
            Reload(sender, e);
        }

        private void btnRefresh_Click(object sender, EventArgs e)
        {
            Reload(sender, e);
        }
    }
}
